<!DOCTYPE html>
<html lang="en">
  <head>
      <meta charset="UTF-8">
      <title>练习2</title>
    <script type="text/javascript">
      let dog = {
        name:'大黄',
        age:10
      }
      let {namex, age} = dog;
      console.log("namex=", namex, " age=", age); //输出"",10
    </script>
  </head>
  <body>

  </body>
</html>